<template>
  <div id="app">
    <router-view class="app-view" v-if="isRouterActive"></router-view>
  </div>
</template>

<script>

export default {
  components: {

  },
  name: 'app',
  created () {

  },
  mounted () {
    this.routeChange()
  },
  data () {
    return {
      path: '',
      isRouterActive: true
    }
  },
  methods: {

    /**
     * 路由切换
     */
    routeChange () {

    },
    reload () {
      this.isRouterActive = false;
      this.$nextTick(() => {
        this.isRouterActive = true;
      })
    }
  },
  watch: {
    '$route': 'routeChange'
  }
}
</script>
<style>
</style>
<style lang="less">
</style>
